const index = require('../config/index.js')
// 获取首页banner
export function getBanners(page, limit) {
  return new Promise((resolve, reject) => {
    wx.request({
      url: index.api + `banners?page=${page}&limit=${limit}`,
      method: 'GET',
      success(res) {
        resolve(res)
      },
      fail(res) {
        reject(res)
      }
    })
  })
}